//存放使用localStorage缓存的函数

export function storeUserProfile(userProfile) {
    localStorage.userprofile = JSON.stringify(userProfile)
}

export function retrieveUserProfile() {
    if (localStorage.userprofile) {
    return JSON.parse(localStorage.userprofile)
    }
}

export function removeUserProfile() {
    localStorage.removeItem('userprofile')
}